Using ImageMagick to easily: Split, Merge, Remove a page from PDF. · GitHub 您所在的位置:网站首页 delete pages from a pdf file in python Using ImageMagick to easily: Split, Merge, Remove a page from PDF. · GitHub

Using ImageMagick to easily: Split, Merge, Remove a page from PDF. · GitHub

2023-02-28 08:26| 来源: 网络整理| 查看: 265

Install Required libraries: sudo apt-get update && sudo apt-get install imagemagick gs create directory to test commands mkdir -p pdf_conversion/{merged,split} cd pdf_conversion download sample multi-page pdf to test with curl -o LargeSample.pdf "http://cl.ly/0o1T453E153m/download/LargeSample.pdf" Split a pdf into separate images convert LargeSample.pdf split/page-%0d.jpg Merge separate images into one full pdf. convert split/*.jpg merged/full.pdf Remove a page from a full pdf. convert LargeSample.pdf split/page-%0d.jpg rm split/page-2.jpg convert split/*.jpg merged/full.pdf

With PHP: You can use PHP exec function to run these commands, ie:



【本文地址】

公司简介

联系我们

今日新闻

    推荐新闻

    专题文章
      CopyRight 2018-2019 实验室设备网 版权所有